<template>
  <el-row :gutter="20">
    <el-col :span="6" v-for="(card, index) in statCards" :key="index">
      <dv-border-box-1 class="tech-stat-card">
        <div class="stat-card-content">
          <el-icon :size="40" :class="card.iconClass">
            <component :is="card.icon"></component>
          </el-icon>
          <div class="stat-info">
            <div class="stat-value">{{ card.value }}</div>
            <div class="stat-label">{{ card.label }}</div>
          </div>
        </div>
      </dv-border-box-1>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: 'StatCards',
  props: {
    statCards: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>
.tech-stat-card {
  margin-bottom: 20px;
  height: 120px;
  padding: 10px;
  background-color: rgba(0, 20, 40, 0.7);
}

.stat-card-content {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
}

.stat-info {
  margin-left: 15px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #00c0ff;
  text-shadow: 0 0 10px rgba(0, 192, 255, 0.7);
}

.stat-label {
  font-size: 14px;
  color: #ffffff;
  margin-top: 5px;
  text-shadow: 0 0 5px rgba(0, 192, 255, 0.5);
}

.icon-resume {
  color: #00c0ff;
  text-shadow: 0 0 10px rgba(0, 192, 255, 0.7);
}

.icon-template {
  color: #00ffb8;
  text-shadow: 0 0 10px rgba(0, 255, 184, 0.7);
}

.icon-skill {
  color: #ffe600;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.7);
}

.icon-view {
  color: #ff5a5a;
  text-shadow: 0 0 10px rgba(255, 90, 90, 0.7);
}
</style>